﻿/*
 * Removes all trailing white-space characters from the specified string.
 */
create function [String].[TrimEnd] ( @p_String nvarchar(max) )
returns nvarchar(max) as
begin

  return RTrim( @p_String );

end